//
//  EasyTcpSocket.h
//
//
//  Created by Rankin on 16/5/29.
//  Copyright © 2016年 Rankin. All rights reserved.
//

#import <Foundation/Foundation.h>



@interface EasyTcpSocket : NSObject
@property int sockDescriptor;
@property NSString* connectedIp;
@property NSInteger connectedPort;


- (ssize_t)sendData:(void*)datas length:(long)len resendTimes:(int)resendTimes;
- (int)connectHost:(NSString*)host port:(int)port timeout:(int)timeout;
- (bool)isConnected;
- (void)close;
@end
